
package objects;

/**
 * 
 * @author Emanuel Martins 5940, Ana Pontes 5950 || date 05/06/2014
 * 
 *         This is the class Node, this class sets a node value and sets the
 *         node state (if was already visited or not).
 * 
 */

public class Node
{
   private int     x;
   private int     y;
   private int     h;
   private int     value;
   private boolean isVisited;

   /**
    * This method
    * 
    * @param x
    *           - the horizontal coordinate of the node
    * @param y
    *           - the vertical coordinate of the node
    * @param value
    *           -
    */

   public Node(int x, int y, int value)
   {
      this.x = x;
      this.y = y;
      this.value = value;
   }

   /**
    * This method returns if the node has been visited
    * 
    * @return - returns a boolean, true if the node has been visited, false if
    *         not
    */

   public boolean isVisited()
   {
      return isVisited;
   }

   /**
    * This method sets if the node has been visited
    * 
    * @param isVisited
    *           - sets true or false for the node
    */

   public void setVisited(boolean isVisited)
   {
      this.isVisited = isVisited;
   }

}